const { defineConfig } = require('@vue/cli-service')
const path = require('path');
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: (config) => { // 添加链式Webpack配置
    if (process.env.NODE_ENV === 'development') {
      console.log(path.resolve(__dirname, '../../VueInspectorLoader.js'))
      config.module
        .rule("vue-dev-loader")
        .test(/\.(vue)$/)
        .use("vue-dev-loader")
        .loader(path.resolve(__dirname, '../../VueInspectorLoader.js'))
        .end();
    }
  }
})
